/*
 * ServerPatch.js
 * 
 * 
 * */

(function(my){
	var key = CryptoJS.enc.Utf8.parse("sdfgyuiedfoiu64d");
	function ServerII(){

	}
	ServerII.prototype = new Server(settings.baseurl || 'http://ihelppark.com:8080/TingCheDangServer');
	ServerII.prototype.constructor = Server;
	ServerII.prototype.decode = function(word){
                log = word;
		var decrypt = CryptoJS.AES.decrypt(word, key, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7});  
                // log = decrypt;    
                var u = decrypt.toString(CryptoJS.enc.Utf8);
               //log = 'u';
                log = u;
                var ret =  Base64II.decodeRaw(u);
                log = ret;
                return ret;
	}
	my.server = new ServerII;

})(this);
function enc(encoding, str)
{
    var en = new TextEncoder(encoding, {NONSTANDARD_allowLegacyEncoding:true});
    return en.encode(str);
}
function dec(encoding, obj)
{
    var de = new TextDecoder(encoding);
    return de.decode(obj);
}